package com.atguigu.springcloud;

import com.atguigu.ribbonrule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
/*新的任务调用方式,配置类自己在spring启动类之外配置*/
/*注释掉这个是自己写一个轮询调用,并注释掉@LoadBalanced
* 用CAS自旋锁来获得客户端访问的次数
*
* */
//@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MyRule.class)
public class OrderApplication80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication80.class,args);
    }
}
